<%@ include file="header.jsp" %>
<h1>All Problems</h1>
<table>
<tr>
	<td>ID</td>
	<td>Nombre</td>
</tr>

<c:forEach items="${problemModel}" var="problema">
	<tr>
	<td>
	<a href="problem/<c:out value="${problema.id}"/>.pdf"><c:out value="${problema.id}"/></a>
	</td>
	<td>
	<a href="problem/<c:out value="${problema.id}"/>.pdf"><c:out value="${problema.name}"/></a>
	</td>
	<c:if test="${userInfo.role == 1}">
	<td>
	<a href="submitSolution.html?problemId=<c:out value="${problema.id}" />" >Submit</a> 
	</td>
	</c:if>
	</tr>
</c:forEach>
</table>
	

<%@ include file="footer.jsp" %>